<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>background-origin背景的起始位置</title>
    <style>
      .box {
        width: 200px;
        height: 200px;
        padding: 50px;
        font-size: 80px;
        color: transparent;
        margin: 0 auto;
        background-color: blue;
        border: 50px dotted rgba(255, 0, 0, 0.7);
        background-image: url("../../images/fj.png");
        background-repeat: no-repeat;

        /* background-clip: border-box;border-box是默认值，表示从边框开始裁剪 */
        /* background-clip: border-box; */

        /* background-clip: padding-box; padding-box 表示从padding内开始裁剪 */
        /* background-clip: padding-box; */

        /* background-clip: content-box; content-box 表示从内容开始裁剪 */
        /* background-clip: content-box; */

        /* background-clip: text; text 背景从文字开始裁剪--背景配合文字颜色为透明 */
        background-clip: text;
      }
    </style>
  </head>
  <body>
    <div class="box">背景原点</div>
  </body>
</html>
